PEP 660 – Editable installs for pyproject.toml based builds (wheel based)
https://peps.python.org/pep-0660/
Motivation
Python programmers want to be able to develop packages without having to install (i.e. copy) them into site-packages, for example, by working in a checkout of the source repository.
setuptools provides the setup.py develop mechanism that makes the process easier, and also installs dependencies and entry points such as console scripts.
pip exposes this mechanism via its pip install --editable option.
pip install --editableはsetup.py developを使っている(setuptoolsの仕組み)と理解した
Now that PEP 517 provides a mechanism to create alternatives to setuptools, and decouple installation front ends from build backends, we need a new mechanism to install packages in editable mode.
PEP 517 – A build-system independent format for source trees
Rationale
PEP 517 deferred “Editable installs”, meaning non-setup.py distributions lacked that feature.
Terminology and goals
The editable installation mode implies that the source code of the project being installed is available in a local directory.
Once the project is installed in editable mode, users expect that changes to the project python code in the local source tree become effective without the need of a new installation step.
仕組み
.dist-infoディレクトリ(積ん読)
Prototypes
https://github.com/pypa/pip/pull/8212
https://github.com/dholth/setuptools_pep660